﻿@model Inovout.Account.Web.Models.OrganizationSignUpInfo
@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "三宝云账户";
}


<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" /><span><a href='@Url.Action("SignIn", "Account", new { returnUrl = ViewBag.ReturnUrl })'>登录</a></span>
</header>

<div class="reg_main w80">
    @if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
    {
        <h1>您将成为三宝云企业账户</h1>
    }
    else
    { 
        <h1>创建您的三宝云企业账户</h1>
    }

    <div class="organization_signUp">
        <div class="wgt">
            <div class="person_signUp_header">
                @if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
                { 
                    <a href='@Url.Action("Bind", "Person", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>个人账户</a>
                }
                else
                {
                    <a href='@Url.Action("SignUp", "Person", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>个人账户</a>
                }
            </div>
            <div class="organization_signUp_header">
                @if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
                { 
                    <a href='@Url.Action("Bind", "Organization", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>企业账户</a>
                }
                else
                {
                    <a href='@Url.Action("SignUp", "Organization", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") })'>企业账户</a>
                }
                <em class="arrow"></em>
            </div>
        </div>
        <div class="organization_signUp_form positon_organization">
            @using (Html.BeginForm("SignUp", "Organization", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
            { 
@*@Html.AntiForgeryToken()*@
                @Html.ValidationSummary(true)
                if (Model != null && Model.IsExtensional != null && Model.IsExtensional)
                {
                @Html.HiddenFor(m => m.OpenIdClaimedIdentifier)
                @Html.HiddenFor(m => m.OpenIdProvider)
                @Html.HiddenFor(m => m.OpenIdUserName)
                }
                else
                {
                <div >
                    @Html.LabelFor(model => model.UserName, "用户名", new { @class = "w4 paddingLeft-w1" })
                    @Html.TextBoxFor(model => model.UserName, new { maxlength = 100 , placeholder = "用户名"})
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>
                <div >
                    @Html.LabelFor(model => model.Password, "密码", new { @class = "w3 paddingLeft-w2" })
                    @Html.EncryptPasswordFor(model => model.Password, new Dictionary<string, object>() { { "maxlength", "20" }, { "placeholder", "6-20位的密码" } })
                    @Html.ValidationMessageFor(model => model.Password)
                </div>
                <div >
                    @Html.LabelFor(model => model.ConfirmPassword, "确认密码", new { @class = "w5" })
                    @Html.PasswordFor(model => model.ConfirmPassword, new { maxlength = 20, placeholder = "确认密码" })
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
                }
                <div >
                    @Html.LabelFor(model => model.OrganizationName, "机构名称", new { @class = "w5" })
                    @Html.TextBoxFor(model => model.OrganizationName, new { maxlength = 100 , placeholder = "机构名称"})
                    @Html.ValidationMessageFor(model => model.OrganizationName)
                </div>  
                <div >
                    @Html.LabelFor(model => model.OrganizationEmail, "邮箱地址", new { @class = "w5" })
                    @Html.TextBoxFor(model => model.OrganizationEmail, new { maxlength = 100 , placeholder = "电子邮箱"})
                    @Html.ValidationMessageFor(model => model.OrganizationEmail)
                </div>  
                <div class="wgt-l-signUp">
                    <input type="submit" value="注册" class="person_reg" />
                </div>

            }
        </div>
    </div>
</div>


